﻿using System;
using System.Net;
using System.Text;

namespace TagSearch
{
    public class IWebClient : WebClient
    {
        public class WebClientState
        {
            public string Name;
            public ITag Tag;
            public int State;
            public WebClientState(string _Name, int _State, ITag _ITag)
            {
                Tag = _ITag;
                Name = _Name;
                State = _State;
            }
        }
        public IWebClient()
        {
            ServicePointManager.DefaultConnectionLimit = 50;
            Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
            WebRequest.DefaultWebProxy = null;
            Proxy = null;
            this.Encoding = ASCIIEncoding.UTF8;
            this.Headers.Add("Accept", "application/json");
            this.Headers.Add("User-Agent", "TagSearche - V0.1");
            System.Net.ServicePointManager.Expect100Continue = false;
        }
    }
}

